//
//  SearchResultTableViewCell.m
//  GOGOTravel
//
//  Created by dllo on 16/3/9.
//  Copyright © 2016年 果果. All rights reserved.
//

#import "SearchResultTableViewCell.h"

@implementation SearchResultTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubView];
    }
    return self;
}
- (void)createSubView{
    
    self.imageViewHeader = [[UIImageView alloc] init];
    [self.contentView addSubview:_imageViewHeader];
    [_imageViewHeader release];
    
    
    self.lable1PlaveName = [[BaseLabel alloc] init];
    [self.contentView addSubview:_lable1PlaveName];
    [_lable1PlaveName release];
    
    
}

- (void)dealloc{
    [_imageViewHeader release];
    [_lable1PlaveName release];
    [super dealloc];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    
    _imageViewHeader.frame = CGRectMake(15, 5, 40, 40);
    _imageViewHeader.layer.cornerRadius = 20;
    _imageViewHeader.layer.masksToBounds = YES;
    _lable1PlaveName.frame = CGRectMake(80, 5, 100, 40);
    _lable1PlaveName.font = [UIFont systemFontOfSize:16];
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
